<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="conversation.css" rel="STYLESHEET" type="text/css">
<title>Annotate Conversation</title>
</head>
<body>
<!--        Header         -->
<jsp:include page="scripts/headerAnnotate.jsp" >
    <jsp:param name="title" value="Annotate Conversation" />
</jsp:include>
<!--       Navigation        -->
<jsp:include page="scripts/confirm.js" />
<!-- <jsp:include page="scripts/cnavigation.jsp" /> -->
<!--        Metadata         -->
<div class="meta">
<form method="post">
<table>
  <tr>
    <th>Conversation ID:</th>
    <td><c:out value="${conversation.conversationId}" /></td>
  </tr>
  <tr>
    <th>Date Time:</th>
    <td><c:out value="${conversation.dateTimeEntered}" /></td>
  </tr>
  <tr>
    <th>Session Time:</th>
    <td><c:out value="${conversation.sessionTime}" /></td>
  </tr>
  <tr>
    <th>Referred By:</th>
    <td><c:out value="${conversation.referredBy}" /></td>
  </tr>
  <tr>
    <th>Assigned To:</th>
    <td><c:out value="${conversation.assignedTo}" /></td>
  </tr>
  <tr>
    <th>Number of Messages:</th>
    <td><c:out value="${conversation.numMessages}" /></td>
  </tr>
<!-- <tr>
    <th>Number of Type 1 Messages:</th>
    <td><c:out value="${conversation.numType1Messages}" /></td>
  </tr>
-->
  <tr>
    <th>Number of Message Turns:</th>
    <td><c:out value="${conversation.numMessageTurns}" /></td>
  </tr>

  <tr>
    <th>Label</th>
    <td><spring:bind path="conversation.conversationLabel">
      <select name='<c:out value="${status.expression}"/>'
        value='<c:out value="${status.value}"/>'>
        <c:forEach items="${conv_labels}" var="clabel">
          <option value='<c:out value="${clabel.conversationLabelId}"/>'
            <c:if test="${clabel.conversationLabelId == conversation.conversationLabel.conversationLabelId}">SELECTED
   				    </c:if>><c:out
            value="${clabel.label}" /></option>
        </c:forEach>
      </select>
    </spring:bind></td>
  </tr>
  <tr>
    <th>Note:</th>
    <td><spring:bind path="conversation.note">
      <textarea cols="40" rows="5"
        name='<c:out value="${status.expression}"/>'><c:out
        value="${status.value}" /></textarea>
    </spring:bind></td>
  </tr>
</table>
<p><input name="save" value="Save" type="submit"></p>
</form>
</div>
<!-- <jsp:include page="scripts/mlist.jsp"/> -->
<!-- jsp:include page="scripts/dalist.jsp"/ -->
<jsp:include page="scripts/footer.jsp" />
</body>
</html>
